<?php if ( $this->user->is_logged() ): ?>

	<h2>Unit Announcements:</h2>
	<?php foreach ($admin_messages as $key => $message):?>
		<br />
		<hr>
		<p style="font-size:10px"><?php echo $message['message_date'];?></p>
		<?php echo $message['message_text'];?><br />
		<hr width=50>
		<br />
	<?php endforeach ?>

<?php else : ?>
	
	<p>Please <a href="<?php echo site_url('welcome/login') ?>">login</a> to access Pineapple Blueboard</p>
	
<?php endif ?>